package com.wang.study.mapper;


import com.wang.study.model.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

public interface OrderMapper {
    @Insert("insert into mall_order(id,money,ordername,userid,ordertime) values(#{id},#{money},#{ordername},#{userid},#{ordertime})")
    Integer insertOrder(Order order);
    @Update("update mall_order set status=2 where id = #{id}")
    Integer updateStatusById(String id);
}
